package com.ysl.study.designpattern.createmode.singleton;

/**
 * 单例模式 懒汉模式 静态内部类
 *
 * @author yangshanlin
 * @date 2023/2/16 18:12
 * @describe
 */
public class Singleton5 {
    private static class SingleTonHoler{
        private static Singleton5 INSTANCE = new Singleton5();
    }

    public static Singleton5 getInstance(){
        return SingleTonHoler.INSTANCE;
    }

    private Singleton5() {
    }


}
